/********************************************************************************
* File Name:	pathuri.cpp
* Description:	第12章实例训练          
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1  
* E_mail: openlinux2011@gmail.com		                
*
********************************************************************************/
#include "pathuri.h"
#include "ui_pathuri.h"
PathURI::PathURI(QWidget *parent) :QDialog(parent),
    ui(new Ui::PathURI)
{
    ui->setupUi(this);
}
PathURI::~PathURI()
{
    delete ui;
}
void PathURI::pbOpenEnable() //槽函数，设置按钮的有效性
{
    ui->pbOpen->setEnabled(!ui->lePath->text().isEmpty());
    ui->pbOpen->setDefault(TRUE);
}

void PathURI::pbOpenFile() //槽函数，给变量filePath赋值
{
    filePath = ui->lePath->text();
    close();
}

QString PathURI::GetFilePath() //获取filePath的值
{
    return filePath;
}
